import React from 'react'
import { PageHeaderWrapper } from '@ant-design/pro-layout'
import { Form, Switch, Button, Card } from 'antd'

export default () => {
    return (
        <PageHeaderWrapper title={false}>
            <Card>
                <Form
                    labelCol={{ span: 3 }}
                    wrapperCol={{ span: 11 }}
                    initialValues={{ platform_enable: true, tenant_enable: true }}
                >
                    <Form.Item label="是否启用平台登录" name="platform_enable" valuePropName="checked" help="设置平台端登录验证码是否开启">
                        <Switch />
                    </Form.Item>
                    <Form.Item label="是否启用商家登录" name="tenant_enable" valuePropName="checked" help="设置商户端登录验证码是否开启">
                        <Switch />
                    </Form.Item>
                    <Form.Item wrapperCol={{ offset: 3 }}>
                        <Button type="primary">保存</Button>
                    </Form.Item>
                </Form>
            </Card>
        </PageHeaderWrapper>
    )
}